package com.tony.spring.mode.decorator;

public class DemoTest {
	
	public static void main(String[] args) {
		// 1、创建主对象
		DemoService demoService = new DemoServiceImpl();
		
		// 2、创建装饰器
		DemoServiceTeacherDecorator decorator = new DemoServiceTeacherDecorator(demoService);
		
		// 3、装饰器执行
		decorator.demo();
	}

}
